
<% var pageLevelJS = { %>
<script type="text/javascript">
var settings = {
		 modelDomainFlag:"auth"
		,modelFlag:"group"
		,key:"${sessionId}"
		,canUpdate:${shiro.hasPermission('auth_group:update:*')}
		,canDelete:${shiro.hasPermission('auth_group:delete:*')}
		,canRemove:${shiro.hasPermission('auth_group:remove:*')}
		,canAdd:${shiro.hasPermission('auth_group:add:*')}
		,canDetail:${shiro.hasPermission('auth_group:detail:*')}
		}
window.global.hasInstance = ${sysFlags.~size>1};
</script> 
<script type="text/javascript" src="${ctx}/static/js/auth/group/index.js"></script>
<%};%> 
<% var form = { %>
<form id="searchForm" action="${ctx}/auth/group/query?_style=bs&${session._para}" class="form-inline" role="form">
				  <%if(has(sysFlags) && sysFlags.~size>1){ %>
					   <div class="form-group  ">
					     <label for="categoryCode">所属系统:</label>
						 <select placeholder="类别" name="auth_groupId" class="form-control">
						    <option value="">--系统--</option>
							<% for(res in sysFlags!){ %>
							  <option value="${res.id}">${res.nameStr}</option>
						　　   <% } %>
						</select>
					  </div>
				   <%}else{%>
				       <input type="hidden"  name="auth_groupId" value="${sys_flag}">
				    <% } %>
				  <div class="form-group">
				     <label for="name">组名:</label>
				     <input type="text" class="validate[maxSize[50]] form-control" name="name" placeholder="组名">
				  </div>
				  <div class="form-group" >
				       <label for="validClass">有效区分:</label>
				 	   <div class="form-control" id="validClass"> 
					       <label class="">
					         <input type="radio" name="validClass" class="toggle" value="1">有效
					       </label>
					       <label class="">
					         <input type="radio" name="validClass" class="toggle" value="0">无效
					       </label>
					       <label class="">
					         <input type="radio" name="validClass" checked="checked" class="toggle" value="">全部
					       </label>
				       </div>
				</div>
				  <div class="form-group"  >
				       <label for="validClass">删除区分:</label>
				 	   <div class="form-control" id="deleteClass"> 
					       <label class="">
					         <input type="radio" name="deleteClass" class="toggle" value="1">已删除
					       </label>
					       <label class="">
					         <input type="radio" name="deleteClass" class="toggle" value="0">未删除
					       </label>
					       <label class="">
					         <input type="radio" name="deleteClass" checked="checked" class="toggle" value="">全部
					       </label>
				       </div>
				</div>
				
			</form>
<%};%> 

<% var toolbar = { %>
<%if(shiro.hasPermission('auth_group:add:*')) {%>
		<button type="button" class="btn btn-primary btn-xs addBtn" title="新增" data-toggle="modal" data-target="#myModal">
			<i class="ace-icon fa  fa-plus bigger-120"></i>新增 
		</button> 
		<%}%>
		<%if(shiro.hasPermission('auth_group:remove:*')||shiro.hasPermission('auth_group:update:*')) {%>
		<button type="button" class="btn btn-warning btn-xs removeBtn" title="将数据标识为删除状态">
			<i class="ace-icon fa fa-trash-o bigger-120"></i>逻辑删除
		</button> 
		<%}%>
		<%if(shiro.hasPermission('auth_group:delete:*')) {%>
		<button type="button" class="btn btn-danger btn-xs delBtn" title="物理删除数据">
			<i class="ace-icon fa fa-trash-o bigger-120"></i>删除
		</button> 
		<%}%>
<div class="pull-right">
		    <button type="button" class="btn btn-info btn-xs tableBtn" title="控制非核心列">
		<i class="ace-icon fa bigger-120">隐藏</i>
	</button>
</div>
<%};%> 

<% var ths = { %>
      <th w_render="checkboxFunc" w_class="center" w_index="id" width="50px"><input type="checkbox"/></th>
                <th w_num="total_line" w_class="center hidden-480" width="50px">序号</th>
		        <th w_index="name" w_tip="true">组名</th>
		        <%if(has(sysFlags) && sysFlags.~size>1){ %>
		        <th w_index="instance.nameStr" w_class="hidden-480" >所属系统</th>
		        <%}%>
		        <th w_index="remark" w_class="hidden-480" w_tip="true">备注</th>
		        <th w_index="validCreateDt" w_class="hidden-480" width="130px">创建时间</th>
		        <th w_render="validClassFunc" w_class="hidden-480" w_index="validClass" width="120px">有效区分</th>
		        <th w_render="removeClassFunc" w_class="hidden-480" w_index="deleteClass" width="120px">删除区分</th>
		        <th w_render="operateFunc" class="nodata width-480-ctr" w_index="id" w="120px" width="120px">操作</th>
	
<%};%> 
<% var layoutParas =
{"title":"",table:"searchTable",tableClass:"","ths":ths,"toolbar":toolbar,"form":form,"pageLevelJS":pageLevelJS};
layout("/WEB-INF/views/btl/template/backBasicGridTemplate.html", layoutParas){ %>
	
<%} %>
